<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/META-INF/templates/customerTemplate.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:mg="http://at.irian/mygourmet">
		<ui:param name="title" value="#{msgs.title_main} - #{msgs.title_add_customer}"/>
		<ui:define name="content">
			<h2><h:outputText value="#{msgs.title_add_customer}: #{msgs.add_customer_personal}"/></h2>
			<h:messages showDetail="true" showSummary="false"/>
			<h:form id="form">
				<h:panelGrid id="baseData" columns="2" columnClasses="labelColumn, elementColumn">
                    <h:outputLabel for="zipCode" value="#{msgs.zip_code}:"/>
                    <h:inputText id="zipCode" size="30"
                            value="#{addCustomerBean.address.zipCode}">
                        <mg:convertZipCode/>
                    </h:inputText>
                    <h:outputLabel for="city" value="#{msgs.city}:"/>
                    <h:inputText id="city" size="30" maxlength="40"
                        value="#{addCustomerBean.address.city}"/>
                    <h:outputLabel for="street" value="#{msgs.street}:"/>
                    <h:inputText id="street" size="30" maxlength="40"
                        value="#{addCustomerBean.address.street}"/>
                    <h:outputLabel for="country" value="#{msgs.country}:"/>
                    <h:inputText id="country" size="30" maxlength="40"
                        value="#{addCustomerBean.address.country}"/>
				</h:panelGrid>
				<h:commandButton id="previous" action="/addCustomer1.xhtml" value="#{msgs.previous}"/>
				<h:commandButton id="save" action="#{addCustomerBean.save}" value="#{msgs.save}"/>
				<h:commandButton id="cancel" value="#{msgs.cancel}" action="#{addCustomerBean.cancel}" immediate="true"/>
			</h:form>
		</ui:define>
	</ui:composition>
